package com.www.jpa.dao;

import com.www.jpa.entity.BackupRecord;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

/**
 * <p>
 * .
 *
 * @author o_o
 * @date 2025-06-23
 */
public interface BackupRecordRepository extends JpaRepository<BackupRecord, Long> {

    @Query("SELECT b FROM BackupRecord b ORDER BY b.backupTime DESC")
    List<BackupRecord> findAllOrderByBackupTimeDesc();
}